import request from '/@/utils/request'

// 查询OSS对象存储列表
export function listOss(query) {
    return request({
        url: '/oss/list',
        method: 'post',
        data: query
    })
}

// 查询OSS对象存储详细
export function getOss(ossId) {
    return request({
        url: '/oss/' + ossId,
        method: 'get'
    })
}

// 查询OSS对象基于id串
export function listByIds(ossId) {
    return request({
        url: '/oss/listByIds/' + ossId,
        method: 'get'
    })
}

// 新增OSS对象存储
export function addOss(data) {
    return request({
        url: '/oss',
        method: 'post',
        data: data
    })
}

// 修改OSS对象存储
export function updateOss(data) {
    return request({
        url: '/oss',
        method: 'put',
        data: data
    })
}

// 删除OSS对象存储
export function delOss(oss) {
    return request({
        url: '/oss',
        data: oss,
        method: 'delete'
    })
}
